package cn.skyquant.quant4j.service.boot.model.economics.jinshi;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface EconomicsRepository extends CrudRepository<Economics, Integer> {
    List<Economics> findByPublicTime(Date publictime);
    List<Economics> findByRecordTime(Date recordTime);
    @Query("select u from Economics u where u.publicTime between ?1 and ?2 ")
    List<Economics> findBetweenPublicTime(Date begin,Date end);
}
